import axios from "axios";
import {IProduct, IProductInputDto} from '@/interfaces/ProductList'
axios.defaults.baseURL="https://localhost:7287/api"

export const getProduct = async (data:IProductInputDto)=>{
    console.log(data,'data')
    var res = await axios.get("/Product",{params:data});
    console.log(res.data,'res')
    return res.data;
}
export const getBelongtype = async ()=>{
    console.log("到这了")
    var res = await axios.get("/Product/Blongtype")
    console.log(res,"到这了吗")
    return res.data;
}

